home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr35 / scani02b.zip / SCANFILE.WCX (.txt) < prev    next >
Wildcat! WCX  |  1995-01-09  |  16KB  |  849 lines

  1. '! Decompiled with wccNosy version 4.20f (freeware)
  2. '! Input File: in.wcx  15519 bytes  01/29/123  04:12:48pm
  3. '! Code Segment Size  :9157 bytes
  4. '! Data Segment Size  :6136 bytes
  5. '! String Segment Size:6362 bytes
  6. '! Compiled with WCC version 4.01
  7.  
  8.       Type Type26
  9.         Filler0(1 To 6) As Byte
  10.         s6 As String*70
  11.         Filler76(1 To 14) As Byte
  12.         s90 As String*70
  13.         Filler160(1 To 14) As Byte
  14.         s174 As String*70
  15.       End Type
  16.  
  17.       Declare Function Func1257(s65534 As String) As Integer
  18.       Declare Function Func1316 As Integer
  19.       Declare Function Func1389 As Integer
  20.       Declare Function Func1535 As Integer
  21.       Declare Function Func1659 As Integer
  22.       Declare Function Func1761 As Integer
  23.       Declare Function Func1841 As Integer
  24.       Declare Function Func1906(i65534 As Integer, i65532 As Integer, i65530 As Integer, s65528 As String) As Integer
  25.       Declare Function Func2063(i65534 As Integer, s65532 As String, s65530 As String, s65528 As String) As Integer
  26.       Declare Sub Sub2175
  27.       Declare Sub Sub2444
  28.       Declare Sub Sub2605
  29.       Declare Sub Sub2651
  30.       Declare Sub Sub2923
  31.       Declare Sub Sub3053
  32.       Declare Sub Sub3904
  33.       Declare Sub Sub4118
  34.       Declare Sub Sub4329
  35.       Declare Sub Sub5238
  36.       Declare Sub Sub5805
  37.       Declare Sub Sub6638
  38.       Declare Sub Sub7181
  39.       Declare Sub Sub8115
  40.       Declare Sub Sub8257
  41.  
  42.       Dim s4463 As String
  43.       Dim sr4467 As SearchRec
  44.       Dim i4516 As Integer
  45.       Dim s4518 As String
  46.       Dim s4522 As String
  47.       Dim s4526(1 To 10) As String
  48.       Dim o4566 As Boolean
  49.       Dim fr4567 As FileRecord
  50.       Dim s6051 As String
  51.       Dim s6055 As String
  52.       Dim i6059 As Integer
  53.       Dim s6061 As String
  54.       Dim s6065 As String
  55.       Dim s6069 As String
  56.       Dim i6073 As Integer
  57.       Dim s6075 As String
  58.       Dim s6079 As String
  59.       Dim s6083 As String*1
  60.       Dim b6084 As Byte
  61.       Dim i6085 As Integer
  62.       Dim i6087 As Integer
  63.       Dim i6089 As Integer
  64.       Dim i6091 As Integer
  65.       Dim i6093 As Integer
  66.       Dim i6095 As Integer
  67.       Dim i6097 As Integer
  68.       Dim i6099 As Integer
  69.       Dim i6101 As Integer
  70.       Dim i6103 As Integer
  71.       Dim i6105 As Integer
  72.       Dim s6107 As String
  73.       Dim s6111 As String
  74.       Dim s6115 As String
  75.       Dim s6119 As String
  76.       Dim s6123 As String
  77.       Dim o6127 As Boolean
  78.       Dim s6128 As String
  79.       Dim i6132 As Integer
  80.       Dim i6134 As Integer
  81.  
  82.       Dim s65524_ As String '! Temporary
  83.       Dim i65528_ As Integer '! Temporary
  84.       Dim i65530_ As Integer '! Temporary
  85.       Dim s65532_ As String
  86.  
  87.       s6079 = "v.02b BETA"
  88.       CarrierCheck(0)
  89.       o4566 = 0
  90.       Cls 
  91.       s6055 = User.Name
  92.       s6055 = Trim(s6055)
  93.       s6119 = MakeWild.SysopName
  94.       s6119 = Trim(s6119)
  95.       Sub8257
  96.       s6075 = Trim(Str(MakeWild.NodeId))
  97.       s4463 = s4463 + s6075
  98.       Sub2923
  99.       Sub8115
  100.       Sub2444
  101.       Func1841
  102.       Func1906(i6073, (15), (0), ("Beginning Analysis of [" + s6111 + "]"))
  103.       Sub3053
  104.       If Not o4566 Then
  105.         s65532_ = s6051
  106.         If s65532_ = "ZIP" Then
  107.           Sub6638
  108.         Else
  109.   307     If s65532_ = "ARJ" Then
  110.             Sub5238
  111.           Else
  112.   336       If s65532_ = "EXE" Then
  113.               Func1906(i6073, (15), (0), ("Testing [" + s6111 + "] with SCAN"))
  114.               Locate i6089, i6093
  115.               Print "@09@*";
  116.               Locate i6101, i6103
  117.               Print "@09@*";
  118.               Sub7181
  119.             Else
  120.   482         If s65532_ = "GIF" Then
  121.                 Func1906(i6073, (15), (0), ("Testing [" + s6111 + "] with SCAN"))
  122.                 Locate i6089, i6093
  123.                 Print "@09@*";
  124.                 Locate i6101, i6103
  125.                 Print "@09@*";
  126.                 Sub7181
  127.               Else
  128.   628           If s65532_ = "BMP" Then
  129.                   Func1906(i6073, (15), (0), ("Testing [" + s6111 + "] with SCAN"))
  130.                   Locate i6089, i6093
  131.                   Print "@09@*";
  132.                   Locate i6101, i6103
  133.                   Print "@09@*";
  134.                   Sub7181
  135.                 Else
  136.   774             If s65532_ = "TIF" Then
  137.                     Func1906(i6073, (15), (0), ("Testing [" + s6111 + "] with SCAN"))
  138.                     Locate i6089, i6093
  139.                     Print "@09@*";
  140.                     Locate i6101, i6103
  141.                     Print "@09@*";
  142.                     Sub7181
  143.                   Else
  144.   920
  145.                     Func1906(i6073, (15), (0), ("Testing [" + s6111 + "] with SCAN"))
  146.                     Locate i6089, i6093
  147.                     Print "@09@*";
  148.                     Locate i6101, i6103
  149.                     Print "@09@*";
  150.                     Sub7181
  151.                   End If
  152.                 End If
  153.               End If
  154.             End If
  155.           End If
  156.         End If
  157.       End If
  158.  1043 If o4566 Then
  159.         Locate i6073, 78
  160.         Delay i6132
  161.       Else
  162.  1079   Locate i6073, 78
  163.         Delay i6134
  164.       End If
  165.  1098 CarrierCheck(-1)
  166.       Cls 
  167.       If o4566 And s6065 <> "NONE" And o6127 Then
  168.         Cls 
  169.         CheckMailAtLogon 
  170.       End If
  171.  1145
  172.  
  173. '! Called 6 times
  174.       Function Func1257(s65534 As String) As Integer
  175.         Open s6123 + "\SCANIT.LOG" For Append As 1
  176.         Print #1, s65534
  177.         Close 1
  178.       End Function
  179.  
  180. '! Called 1 time
  181.       Function Func1316 As Integer
  182.         Dim i65530 As Integer
  183.         Dim i65532 As Integer
  184.  
  185.         i65532 = CsrLin
  186.         i65530 = Pos
  187.         Locate i6091, i6099
  188.         Color 14, 0
  189.         Print s6111;
  190.         Locate i65532, i65530
  191.       End Function
  192.  
  193. '! Called 2 times
  194.       Function Func1389 As Integer
  195.         If Not o4566 Then
  196.           Locate i6085, i6087
  197.           Print "@0F@√@0E@";
  198.         Else
  199.  1439     Locate i6085, i6087
  200.           Print "@8C@█@0E@"
  201.           Locate i6089, i6093
  202.           Print "@0C@X@0E@";
  203.           Locate i6095, i6097
  204.           Print "@0C@X@0E@";
  205.           Locate i6101, i6103
  206.           Print "@0C@X@0E@";
  207.         End If
  208.  1527
  209.       End Function
  210.  
  211. '! Called 4 times
  212.       Function Func1535 As Integer
  213.         If Not o4566 Then
  214.           Locate i6089, i6093
  215.           Print "@0F@√@0E@";
  216.         Else
  217.  1585     Locate i6089, i6093
  218.           Print "@8C@█@0E@";
  219.           Locate i6095, i6097
  220.           Print "@0C@X@0E@";
  221.           Locate i6101, i6103
  222.           Print "@0C@X@0E@";
  223.         End If
  224.  1651
  225.       End Function
  226.  
  227. '! Called 6 times
  228.       Function Func1659 As Integer
  229.         If Not o4566 Then
  230.           Locate i6095, i6097
  231.           Print "@0F@√@0E@";
  232.         Else
  233.  1709     Locate i6095, i6097
  234.           Print "@8C@█@0E@";
  235.           Locate i6101, i6103
  236.           Print "@0C@X@0E@";
  237.         End If
  238.  1753
  239.       End Function
  240.  
  241. '! Called 3 times
  242.       Function Func1761 As Integer
  243.         If Not o4566 Then
  244.           Locate i6101, i6103
  245.           Print "@0F@√@0E@";
  246.         Else
  247.  1811     Locate i6101, i6103
  248.           Print "@8C@█@0E@";
  249.         End If
  250.  1833
  251.       End Function
  252.  
  253. '! Called 14 times
  254.       Function Func1841 As Integer
  255.         Dim i65530 As Integer
  256.         Dim i65532 As Integer
  257.  
  258.         i65532 = CsrLin
  259.         i65530 = Pos
  260.         Locate i6073, 2
  261.         Print Space(76);
  262.         Locate i65532, i65530
  263.       End Function
  264.  
  265. '! Called 21 times
  266.       Function Func1906(i65534 As Integer, i65532 As Integer, i65530 As Integer, s65528 As String) As Integer
  267.         Dim i65520 As Integer
  268.         Dim i65522 As Integer
  269.         Dim i65524 As Integer
  270.  
  271.         If Len(s65528) > 76 Then
  272.           s65528 = Left(s65528, 76)
  273.         End If
  274.  1951   i65522 = CsrLin
  275.         i65520 = Pos
  276.         i65524 = 40 - Len(s65528) / 2
  277.         Color i65532, i65530
  278.         Locate i65534, i65524
  279.         Print Trim(s65528);
  280.         Locate i65522, i65520
  281.       End Function
  282.  
  283. '! Called 4 times
  284.       Function Func2063(i65534 As Integer, s65532 As String, s65530 As String, s65528 As String) As Integer
  285.         Dim mh65206 As MessageHeader
  286.  
  287.         GetConfInfo(Conference, i65534)
  288.         Join i65534
  289.         mh65206.From = s65532
  290.         mh65206.To = s65530
  291.         mh65206.Subject = s65528
  292.         AddMessage(mh65206, s6115, "", i65534)
  293.       End Function
  294.  
  295. '! Called 5 times
  296.       Sub Sub2175
  297.         Dim l65530 As Long
  298.         Dim i65534 As Integer
  299.  
  300.         Shell s4463 + "\SBAT.BAT", ""
  301.         If Exists(s4463 + "\SCANFILE.BAD") Then
  302.           o4566 = -1
  303.           If GetFileInfo(fr4567, s6111) Then
  304.  2268       For i6105 = 1 To 3 Step 1
  305.               Beep 
  306.             Next
  307.  2344       fr4567.Flags = fr4567.Flags Or 64
  308.             UpdateFile(fr4567)
  309.             If Exists(s4463 + "\SCANFILE.BAD") Then
  310.               Del s4463 + "\SCANFILE.BAD"
  311.             End If
  312.  2407       If Exists(s4463 + "\SBAT.BAT") Then
  313.               Del s4463 + "\SBAT.BAT"
  314.             End If
  315.           End If
  316.         End If
  317.  2441
  318.       End Sub
  319.  
  320. '! Called 5 times
  321.       Sub Sub2444
  322.         If Exists(s4463 + "\SBAT.BAT") Then
  323.           Del s4463 + "\SBAT.BAT"
  324.         End If
  325.  2487   i4516 = FindFirst(s4463 + "\STEMP\*.*", 0, sr4467)
  326.  2510   Do While i4516 = 0
  327.           Del s4463 + "\stemp\" + sr4467.Name
  328.           i4516 = FindNext(sr4467)
  329.         Loop
  330.  2567   RmDir s4463 + "\STEMP"
  331.         Catch 11
  332.         GoTo 2602
  333.  2602
  334.       End Sub
  335.  
  336. '! Called 2 times
  337.       Sub Sub2605
  338.         If Exists(s4463 + "\SBAT.BAT") Then
  339.           Del s4463 + "\SBAT.BAT"
  340.         End If
  341.  2648
  342.       End Sub
  343.  
  344. '! Called 6 times
  345.       Sub Sub2651
  346.         Dim s65532 As String '! Temporary
  347.  
  348.         If s6065 = "SYSOP" Then
  349.           s6069 = MakeWild.SysopName
  350.           Func2063(i6059, ("SCANIT!"), s6069, s6111)
  351.         End If
  352.  2728   If s6065 = "BOTH" Then
  353.           s6069 = MakeWild.SysopName
  354.           Func2063(i6059, ("SCANIT!"), s6069, s6111)
  355.           s6069 = s6055
  356.           Func2063(i6059, ("SCANIT!"), s6069, s6111)
  357.         End If
  358.  2841   If s6065 = "CALLER" Then
  359.           s6069 = s6055
  360.           Func2063(i6059, ("SCANIT!"), s6069, s6111)
  361.         End If
  362.  2903   If s6065 = "NONE" Then
  363.         End If
  364.  2920
  365.       End Sub
  366.  
  367. '! Called 1 time
  368.       Sub Sub2923
  369.         Dim i65534 As Integer
  370.  
  371.         s6107 = Trim(UCase(ParamStr(1)))
  372.         i65534 = Len(s6107)
  373.         Do
  374.  2959     i65534 = i65534 - 1
  375.         Loop Until i65534 = 0 Or Mid(s6107, i65534, 1) = "\"
  376.         s6111 = Mid(s6107, i65534 + 1, Len(s6107))
  377.         s6051 = Right(s6107, 3)
  378.       End Sub
  379.  
  380. '! Called 1 time
  381.       Sub Sub3053
  382.         Dim i65526 As Integer '! Temporary
  383.         Dim i65528 As Integer '! Temporary
  384.         Dim l65530 As Long
  385.         Dim i65534 As Integer
  386.  
  387.         If Right(s6111, 4) = s4526(1) Or Right(s6111, 4) = s4526(2) Or Right(s6111, 4) = s4526(3) Or Right(s6111, 4) = s4526(4) Or Right(s6111, 4) = s4526(5) Or Right(s6111, 4) = s4526(6) Or Right(s6111, 4) = s4526(7) Or Right(s6111, 4) = s4526(8) Or Right(s6111, 4) = s4526(9) Or Right(s6111, 4) = s4526(10) Then
  388.           o4566 = -1
  389.           Func1389
  390.           If GetFileInfo(fr4567, s6111) Then
  391.  3548       For i6105 = 1 To 3 Step 1
  392.               Beep 
  393.             Next
  394.  3624       fr4567.Flags = fr4567.Flags Or 64
  395.             UpdateFile(fr4567)
  396.             s6115 = "Unacceptable File Type (" + Right(s6111, 4) + ")! Please use " + s4522 + " for all uploads!"
  397.             Func1841
  398.             Func1906(i6073, (12), (8), s6115)
  399.             ActivityLog "(SCANIT!) [" + s6111 + "] - File Type Unacceptable"
  400.             Func1257(("Upload by " + User.Name + " [" + s6111 + "] - File Type Unacceptable"))
  401.             Sub2651
  402.           End If
  403.  3830   Else
  404.  3836     Func1841
  405.           s6115 = "File acceptable. Resuming further testing..."
  406.           Func1906(i6073, (14), (0), s6115)
  407.           Func1389
  408.         End If
  409.  3901
  410.       End Sub
  411.  
  412. '! Called 1 time
  413.       Sub Sub3904
  414.         Dim s65528 As String '! Temporary
  415.         Dim i65532 As Integer '! Temporary
  416.         Dim i65534 As Integer '! Temporary
  417.  
  418.         Func1841
  419.         Func1906(i6073, (11), (0), ("Performing Final SysOp Maintenance Functions"))
  420.         Shell "PKZIP " + s6107 + " -z <" + Trim(s4518), ""
  421.         Func1761
  422.         If Not o4566 Then
  423.           Func1841
  424.           Func1906(i6073, (10), (0), ("Analysis results for [" + s6111 + "] - PASS! Thanks for the upload!"))
  425.         End If
  426.  4115
  427.       End Sub
  428.  
  429. '! Called 1 time
  430.       Sub Sub4118
  431.         Dim s65528 As String '! Temporary
  432.         Dim i65532 As Integer '! Temporary
  433.         Dim i65534 As Integer '! Temporary
  434.  
  435.         Func1841
  436.         Func1906(i6073, (11), (0), ("Performing Final SysOp Maintenance Functions"))
  437.         Shell "Arj c " + s6107 + " -z" + s4518, ""
  438.         Func1761
  439.         If Not o4566 Then
  440.           Func1841
  441.           Func1906(i6073, (10), (0), ("Analysis results for [" + s6111 + "] - PASS! Thanks for the upload!"))
  442.         End If
  443.  4326
  444.       End Sub
  445.  
  446. '! Called 1 time
  447.       Sub Sub4329
  448.         Dim s65528 As String '! Temporary
  449.         Dim i65532 As Integer '! Temporary
  450.         Dim i65534 As Integer '! Temporary
  451.  
  452.         Func1841
  453.         Func1906(i6073, (15), (0), ("Performing Virus Pattern Analysis"))
  454.         Open s4463 + "\SBAT.BAT" For Output As 1
  455.         Print #1, "@ECHO OFF"
  456.         Print #1, "MD STEMP"
  457.         Print #1, "CD STEMP"
  458.         Print #1, "arj e " + s6107
  459.         Print #1, "SCAN *.* /NOMEM"
  460.         Print #1, "IF ErrorLevel 15 goto McAfee"
  461.         Print #1, "IF ErrorLevel 14 goto McAfee"
  462.         Print #1, "IF ErrorLevel 13 goto VIRUS"
  463.         Print #1, "IF ErrorLevel 12 goto McAfee"
  464.         Print #1, "IF ErrorLevel 11 goto McAfee"
  465.         Print #1, "IF ErrorLevel 10 goto MemVir"
  466.         Print #1, "IF ErrorLevel  9 goto Oops"
  467.         Print #1, "IF ErrorLevel  8 goto McAfee"
  468.         Print #1, "IF ErrorLevel  7 goto McAfee"
  469.         Print #1, "IF ErrorLevel  6 goto McAfee"
  470.         Print #1, "IF ErrorLevel  5 goto NoMem"
  471.         Print #1, "IF ErrorLevel  4 goto McAfee"
  472.         Print #1, "IF ErrorLevel  3 goto DiskErr"
  473.         Print #1, "IF ErrorLevel  2 goto McAfee"
  474.         Print #1, "IF ErrorLevel  1 goto DiskErr"
  475.         Print #1, "IF ErrorLevel  0 goto OK"
  476.         Print #1, "goto Unknown"
  477.         Print #1, ":OK"
  478.         Print #1, "goto end"
  479.         Print #1, ":UNKNOWN"
  480.         Print #1, "echo       * An UNKNOWN ERROR occurred while processing [" + s6111 + "]"
  481.         Print #1, "echo *UNKNOWN ERROR! Manually Scan, Please! >>" + s4463 + "\SCANFILE.BAD"
  482.         Print #1, "goto end"
  483.         Print #1, ":DISKERR"
  484.         Print #1, "echo       * There was an ERROR accessing your disk! >>" + s4463 + "\SCANFILE.BAD"
  485.         Print #1, "goto end"
  486.         Print #1, ":NOMEM"
  487.         Print #1, "There was not enough memory to scan [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  488.         Print #1, "goto end"
  489.         Print #1, ":OOPS"
  490.         Print #1, "echo       * Internal Program Error, Cause Unknown! >>" + s4463 + "\SCANFILE.BAD"
  491.         Print #1, "goto end"
  492.         Print #1, ":MEMVIR"
  493.         Print #1, "echo       * Virus Found In Memory! You need to scan/clean your machine! >>" + s4463 + "\SCANFILE.BAD"
  494.         Print #1, "goto end"
  495.         Print #1, ":VIRUS"
  496.         Print #1, "echo       * Scan Detected a VIRUS in [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  497.         Print #1, "goto end"
  498.         Print #1, ":MCAFEE"
  499.         Print #1, "echo       * McAfee SCAN has ERROR in VIRUSCAN! >>" + s4463 + "\SCANFILE.BAD"
  500.         Print #1, "goto end"
  501.         Print #1, ":END"
  502.         Close 1
  503.         Sub2175
  504.         If o4566 Then
  505.           Sub2444
  506.           s6115 = "[" + s6111 + "] Failed VIRUS SCAN!"
  507.           Func1906(i6073, (12), (0), s6115)
  508.           Func1257(("Upload by " + s6055 + " " + s6115))
  509.           ActivityLog "! (SCANIT) " + s6115
  510.           Sub2651
  511.           Func1659
  512.         End If
  513.  5203   If Not o4566 Then
  514.           Sub2444
  515.           Func1659
  516.           Sub4118
  517.         End If
  518.  5235
  519.       End Sub
  520.  
  521. '! Called 1 time
  522.       Sub Sub5238
  523.         Dim s65528 As String '! Temporary
  524.         Dim i65532 As Integer '! Temporary
  525.         Dim i65534 As Integer '! Temporary
  526.  
  527.         Func1841
  528.         Func1906(i6073, (14), (0), ("Performing Archive Integrity Analysis"))
  529.         Open s4463 + "\SBAT.BAT" For Output As 1
  530.         Print #1, "@ECHO OFF"
  531.         Print #1, "arj t " + s6107 + " -jt"
  532.         Print #1, "IF ErrorLevel 8 goto bad"
  533.         Print #1, "IF ErrorLevel 7 goto bad"
  534.         Print #1, "IF ErrorLevel 6 goto bad"
  535.         Print #1, "IF ErrorLevel 5 goto bad"
  536.         Print #1, "IF ErrorLevel 4 goto bad"
  537.         Print #1, "IF ErrorLevel 3 goto bad"
  538.         Print #1, "IF ErrorLevel 2 goto bad"
  539.         Print #1, "IF ErrorLevel 1 goto bad"
  540.         Print #1, "IF ErrorLevel 0 goto end"
  541.         Print #1, "goto UNKNOWN"
  542.         Print #1, ":BAD"
  543.         Print #1, "echo * Error in ARJ File! " + s6107 + " >>" + s4463 + "\SCANFILE.BAD"
  544.         Print #1, "goto end"
  545.         Print #1, ":UNKNOWN"
  546.         Print #1, "echo * Error in ARJ File! " + s6107 + " >>" + s4463 + "\SCANFILE.BAD"
  547.         Print #1, "goto end"
  548.         Print #1, ":END"
  549.         Close 1
  550.         Sub2175
  551.         If o4566 Then
  552.           s6115 = "[" + s6111 + "] Failed File Integrity Check!"
  553.           Func1841
  554.           Func1906(i6073, (12), (0), s6115)
  555.           Func1257(("Upload by " + s6055 + " " + s6115))
  556.           ActivityLog "! (SCANIT) " + s6115
  557.           Sub2651
  558.           Func1535
  559.         End If
  560.  5762   If Not o4566 Then
  561.           Del s4463 + "\SBAT.BAT"
  562.           Func1535
  563.           Sub4329
  564.         End If
  565.  5802
  566.       End Sub
  567.  
  568. '! Called 1 time
  569.       Sub Sub5805
  570.         Dim i65532 As Integer '! Temporary
  571.         Dim i65534 As Integer '! Temporary
  572.  
  573.         Open s4463 + "\SBAT.BAT" For Output As 1
  574.         Print #1, "@ECHO OFF"
  575.         Print #1, "MD STEMP"
  576.         Print #1, "CD STEMP"
  577.         Print #1, "pkunzip -o " + s6107
  578.         Print #1, "SCAN *.* /NOMEM"
  579.         Print #1, "IF ErrorLevel 15 goto McAfee"
  580.         Print #1, "IF ErrorLevel 14 goto McAfee"
  581.         Print #1, "IF ErrorLevel 13 goto VIRUS"
  582.         Print #1, "IF ErrorLevel 12 goto McAfee"
  583.         Print #1, "IF ErrorLevel 11 goto McAfee"
  584.         Print #1, "IF ErrorLevel 10 goto MemVir"
  585.         Print #1, "IF ErrorLevel  9 goto Oops"
  586.         Print #1, "IF ErrorLevel  8 goto McAfee"
  587.         Print #1, "IF ErrorLevel  7 goto McAfee"
  588.         Print #1, "IF ErrorLevel  6 goto McAfee"
  589.         Print #1, "IF ErrorLevel  5 goto NoMem"
  590.         Print #1, "IF ErrorLevel  4 goto McAfee"
  591.         Print #1, "IF ErrorLevel  3 goto DiskErr"
  592.         Print #1, "IF ErrorLevel  2 goto McAfee"
  593.         Print #1, "IF ErrorLevel  1 goto DiskErr"
  594.         Print #1, "IF ErrorLevel  0 goto OK"
  595.         Print #1, "goto Unknown"
  596.         Print #1, ":OK"
  597.         Print #1, "goto end"
  598.         Print #1, ":UNKNOWN"
  599.         Print #1, "echo *UNKNOWN ERROR! Manually Scan, Please! >>" + s4463 + "\SCANFILE.BAD"
  600.         Print #1, "goto end"
  601.         Print #1, ":DISKERR"
  602.         Print #1, "echo       * There was an ERROR accessing your disk! >>" + s4463 + "\SCANFILE.BAD"
  603.         Print #1, "goto end"
  604.         Print #1, ":NOMEM"
  605.         Print #1, "There was not enough memory to scan [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  606.         Print #1, "goto end"
  607.         Print #1, ":OOPS"
  608.         Print #1, "echo       * Internal Program Error, Cause Unknown! >>" + s4463 + "\SCANFILE.BAD"
  609.         Print #1, "goto end"
  610.         Print #1, ":MEMVIR"
  611.         Print #1, "echo       * Virus Found In Memory! You need to scan/clean your machine! >>" + s4463 + "\SCANFILE.BAD"
  612.         Print #1, "goto end"
  613.         Print #1, ":VIRUS"
  614.         Print #1, "echo       * Scan Detected a VIRUS in [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  615.         Print #1, "goto end"
  616.         Print #1, ":MCAFEE"
  617.         Print #1, "echo       * McAfee SCAN has ERROR in VIRUSCAN! >>" + s4463 + "\SCANFILE.BAD"
  618.         Print #1, "goto end"
  619.         Print #1, ":END"
  620.         Close 1
  621.         Sub2175
  622.         If o4566 Then
  623.           Sub2444
  624.           s6115 = "[" + s6111 + "] Failed VIRUS SCAN!"
  625.           Func1841
  626.           Func1906(i6073, (12), (0), s6115)
  627.           Func1257(("Upload by " + s6055 + " " + s6115))
  628.           ActivityLog "! (SCANIT) " + s6115
  629.           Sub2651
  630.           Func1659
  631.           Func1761
  632.         End If
  633.  6603   If Not o4566 Then
  634.           Sub2444
  635.           Func1659
  636.           Sub3904
  637.         End If
  638.  6635
  639.       End Sub
  640.  
  641. '! Called 1 time
  642.       Sub Sub6638
  643.         Dim i65532 As Integer '! Temporary
  644.         Dim i65534 As Integer '! Temporary
  645.  
  646.         Open s4463 + "\SBAT.BAT" For Output As 1
  647.         Print #1, "@ECHO OFF"
  648.         Print #1, "pkunzip -t " + s6107
  649.         Print #1, "IF ErrorLevel 255 goto bad"
  650.         Print #1, "IF ErrorLevel  51 goto bad"
  651.         Print #1, "IF ErrorLevel  11 goto bad"
  652.         Print #1, "IF ErrorLevel  10 goto bad"
  653.         Print #1, "IF ErrorLevel   9 goto bad"
  654.         Print #1, "IF ErrorLevel   8 goto bad"
  655.         Print #1, "IF ErrorLevel   7 goto bad"
  656.         Print #1, "IF ErrorLevel   6 goto bad"
  657.         Print #1, "IF ErrorLevel   5 goto bad"
  658.         Print #1, "IF ErrorLevel   4 goto bad"
  659.         Print #1, "IF ErrorLevel   3 goto bad"
  660.         Print #1, "IF ErrorLevel   2 goto bad"
  661.         Print #1, "IF ErrorLevel   1 goto bad"
  662.         Print #1, "IF ErrorLevel   0 goto end"
  663.         Print #1, "goto UnKnown"
  664.         Print #1, ":BAD"
  665.         Print #1, "echo * Error in ZIP File! " + s6107 + " >>" + s4463 + "\SCANFILE.BAD"
  666.         Print #1, "goto end"
  667.         Print #1, ":UNKNOWN"
  668.         Print #1, "echo * Error in ZIP File! " + s6107 + " >>" + s4463 + "\SCANFILE.BAD"
  669.         Print #1, "goto end"
  670.         Print #1, ":END"
  671.         Close 1
  672.         Sub2175
  673.         If o4566 Then
  674.           s6115 = "[" + s6111 + "] Failed File Integrity Check!"
  675.           Func1841
  676.           Func1906(i6073, (12), (0), s6115)
  677.           Func1257(("Upload by " + s6055 + " " + s6115))
  678.           ActivityLog "! (SCANIT) " + s6115
  679.           Sub2651
  680.           Func1535
  681.         End If
  682.  7138   If Not o4566 Then
  683.           Del s4463 + "\SBAT.BAT"
  684.           Func1535
  685.           Sub5805
  686.         End If
  687.  7178
  688.       End Sub
  689.  
  690. '! Called 5 times
  691.       Sub Sub7181
  692.         Dim s65528 As String '! Temporary
  693.         Dim i65532 As Integer '! Temporary
  694.         Dim i65534 As Integer '! Temporary
  695.  
  696.         Open s4463 + "\SBAT.BAT" For Output As 1
  697.         Print #1, "@ECHO OFF"
  698.         Print #1, "SCAN " + s6107 + " /NOMEM"
  699.         Print #1, "IF ErrorLevel 15 goto McAfee"
  700.         Print #1, "IF ErrorLevel 14 goto McAfee"
  701.         Print #1, "IF ErrorLevel 13 goto VIRUS"
  702.         Print #1, "IF ErrorLevel 12 goto McAfee"
  703.         Print #1, "IF ErrorLevel 11 goto McAfee"
  704.         Print #1, "IF ErrorLevel 10 goto MemVir"
  705.         Print #1, "IF ErrorLevel  9 goto Oops"
  706.         Print #1, "IF ErrorLevel  8 goto McAfee"
  707.         Print #1, "IF ErrorLevel  7 goto McAfee"
  708.         Print #1, "IF ErrorLevel  6 goto McAfee"
  709.         Print #1, "IF ErrorLevel  5 goto NoMem"
  710.         Print #1, "IF ErrorLevel  4 goto McAfee"
  711.         Print #1, "IF ErrorLevel  3 goto DiskErr"
  712.         Print #1, "IF ErrorLevel  2 goto McAfee"
  713.         Print #1, "IF ErrorLevel  1 goto DiskErr"
  714.         Print #1, "IF ErrorLevel  0 goto OK"
  715.         Print #1, "goto Unknown"
  716.         Print #1, ":OK"
  717.         Print #1, "goto end"
  718.         Print #1, ":UNKNOWN"
  719.         Print #1, "echo       * An UNKNOWN ERROR occurred while processing [" + s6111 + "]"
  720.         Print #1, "echo *UNKNOWN ERROR! Manually Scan, Please! >>" + s4463 + "\SCANFILE.BAD"
  721.         Print #1, "goto end"
  722.         Print #1, ":DISKERR"
  723.         Print #1, "echo       * There was an ERROR accessing your disk! >>" + s4463 + "\SCANFILE.BAD"
  724.         Print #1, "goto end"
  725.         Print #1, ":NOMEM"
  726.         Print #1, "There was not enough memory to scan [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  727.         Print #1, "goto end"
  728.         Print #1, ":OOPS"
  729.         Print #1, "echo       * Internal Program Error, Cause Unknown! >>" + s4463 + "\SCANFILE.BAD"
  730.         Print #1, "goto end"
  731.         Print #1, ":MEMVIR"
  732.         Print #1, "echo       * Virus Found In Memory! You need to scan/clean your machine! >>" + s4463 + "\SCANFILE.BAD"
  733.         Print #1, "goto end"
  734.         Print #1, ":VIRUS"
  735.         Print #1, "echo       * Scan Detected a VIRUS in [" + s6111 + "] >>" + s4463 + "\SCANFILE.BAD"
  736.         Print #1, "goto end"
  737.         Print #1, ":MCAFEE"
  738.         Print #1, "echo       * McAfee SCAN has ERROR in VIRUSCAN! >>" + s4463 + "\SCANFILE.BAD"
  739.         Print #1, "goto end"
  740.         Print #1, ":END"
  741.         Close 1
  742.         Sub2175
  743.         If o4566 Then
  744.           Sub2605
  745.           s6115 = "[" + s6111 + "] Failed VIRUS SCAN!"
  746.           Func1841
  747.           Func1906(i6073, (12), (0), s6115)
  748.           Func1257(("Upload by " + s6055 + " " + s6115))
  749.           ActivityLog "! (SCANIT) " + s6115
  750.           Sub2651
  751.           Func1659
  752.         End If
  753.  7972   If Not o4566 Then
  754.           Sub2605
  755.           Func1659
  756.           If Exists(s4463 + "\SBAT.BAT") Then
  757.             Del s4463 + "\SBAT.BAT"
  758.           End If
  759.  8032     Func1841
  760.           Func1906(i6073, (10), (0), ("Analysis results for [" + s6111 + "] - PASS! Thanks for the upload!"))
  761.         End If
  762.  8112
  763.       End Sub
  764.  
  765. '! Called 1 time
  766.       Sub Sub8115
  767.         Dim s65526 As String '! Temporary
  768.         Dim i65530 As Integer '! Temporary
  769.         Dim i65532 As Integer '! Temporary
  770.         Dim i65534 As Integer '! Temporary
  771.  
  772.         If Not DisplayFile(s6061) Then
  773.           Print "No display File named [" + s6061 + "] Exists! Please notify SysOp (Thanks!)"
  774.           Delay 3
  775.         Else
  776.  8175     Func1316
  777.           Func1906((21), (14), (0), ("SCANIT! Copyright (c) 1994/1995 Blake Software"))
  778.         End If
  779.  8254
  780.       End Sub
  781.  
  782. '! Called 1 time
  783.       Sub Sub8257
  784.         Dim l65528 As Long
  785.         Dim i65532 As Integer
  786.         Dim i65534 As Integer
  787.  
  788.         Open "SCANIT.CFG" For Input As 1
  789.         Input #1, s4463
  790.         Input #1, s6123
  791.         Input #1, s4526(1)
  792.         Input #1, s4526(2)
  793.         Input #1, s4526(3)
  794.         Input #1, s4526(4)
  795.         Input #1, s4526(5)
  796.         Input #1, s4526(6)
  797.         Input #1, s4526(7)
  798.         Input #1, s4526(8)
  799.         Input #1, s4526(9)
  800.         Input #1, s4526(10)
  801.         Input #1, s4518
  802.         Input #1, s4522
  803.         Input #1, s6083
  804.         Input #1, i6059
  805.         Input #1, s6065
  806.         Input #1, s6128
  807.         Input #1, s6061
  808.         Input #1, i6073
  809.         Input #1, i6091
  810.         Input #1, i6099
  811.         Input #1, i6085
  812.         Input #1, i6087
  813.         Input #1, i6089
  814.         Input #1, i6093
  815.         Input #1, i6095
  816.         Input #1, i6097
  817.         Input #1, i6101
  818.         Input #1, i6103
  819.         Input #1, i6132
  820.         Input #1, i6134
  821.         Close 1
  822.         s4463 = UCase(s4463)
  823.         s6123 = UCase(s6123)
  824.  8834   For i65534 = 1 To 10 Step 1
  825.           s4526(i65534) = UCase(s4526(i65534))
  826.         Next
  827.  8976   s4518 = UCase(s4518)
  828.         s4522 = UCase(s4522)
  829.         s6083 = UCase(s6083)
  830.         s6065 = UCase(s6065)
  831.         s6128 = UCase(s6128)
  832.         s6061 = UCase(s6061)
  833.         If s6083 = "Y" Then
  834.           b6084 = -1
  835.         End If
  836.  9073   If i6132 < 3 Then
  837.           i6132 = 3
  838.         End If
  839.  9095   If i6134 < 3 Then
  840.           i6134 = 3
  841.         End If
  842.  9117   If s6128 = "Y" Then
  843.           o6127 = -1
  844.         Else
  845.  9148     o6127 = 0
  846.         End If
  847.  9154
  848.       End Sub
  849.